# buildx
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx rm builder
docker buildx create --name builder --driver docker-container --use
docker buildx inspect --bootstrap

docker buildx build --platform linux/arm,linux/arm64,linux/amd64  -t registry.cn-hangzhou.aliyuncs.com/tiptime/ttnode:latest . --push


# login
docker login https://registory.docker.com/
docker login registry.cn-hangzhou.aliyuncs.com

# docker 防火墙
sudo iptables \
        --insert DOCKER-USER \
        --destination 223.73.15.161\
        --jump REJECT
sudo iptables \
        --insert DOCKER-USER \
        --source 223.73.15.161 \
        --jump REJECT

# docker 日志
sudo sh -c 'truncate -s 0 /var/lib/docker/containers/*/*-json.log'